<template>
  <div id="historical" >
    <iframe id="content" :src="url"  frameborder="0"></iframe>
  </div>
</template>

<script>

import {ReturnVisitReport} from '@/api/customer/customer'

export default {
  data() {
    return {
      url:'',
    }
  },
  methods: {
    open() {
      ReturnVisitReport().then(res => {
        console.log('报表路径',res)
        this.url = res
      })
    },

  },
  created() {
    this.open()
  }
}
</script>

<style  scoped>
#historical {
  height: 100vh;
  width: 100%;
  box-sizing: border-box;
}

#content {
  height: 100%;
  width: 100%;
}
</style>